<?php

require '../data/data.php';

$gid = $_GET['gid'];
$sql = 'delete from `cart` where gid = ?';

execute($sql, [$gid]);
header('Location:../cart.php');